package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.Region;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RegionDao extends JpaRepository<Region,Integer>, JpaSpecificationExecutor<Region> {

    public Region findOneByRegionId(int id);
    public List<Region> findAllByParentId(int parentId);
}
